<!--
#    Copyright 2009, Tri-County Electric Cooperative, St. Matthews, South Carolina
#    This file is part of COOPGIS.
#    COOPGIS is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    COOPGIS is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with COOPGIS.  If not, see <http://www.gnu.org/licenses/>.
**************************************************************************
THIS FILE WAS DYNAMICALLY GENERATED BY THE DYNAMIC TEMPLATE INCLUDE
MODIFICATIONS TO THIS FILE WILL BE PERIODICALLY OVERWRITTEN!!!!!
MODIFY THIS TEMPLATE IN THE DYNAMICTEMPLATE.PY FILE
**************************************************************************
-->

<html xmlns="http://www.w3.org/1999/xhtml">
  <head> 
    <style type="text/css">
        #map {
            width: 750px;
            height: 600px;
            border: 1px solid black;
        }
    </style>
<script src="/openlayers/lib/OpenLayers.js"></script>
        <script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>

    <title>COOPGIS Condition Work</title>
  </head>
  <body onload="init()">
<b>{{LoginStatus}}</b>   &nbsp&nbsp&nbsp&nbsp <small><a href="/coopgis/">Main Menu</a></small><br>
<br>

<table width="100%">
<form method="post" action="">
<COLGROUP span="400" width="600">

<tr><td valign="top"><div id="map">
  <script defer="defer" type="text/javascript">
    var bnd = new OpenLayers.Bounds(-9040000, 3940000, -8931000, 4061000);
    var options = {projection: new OpenLayers.Projection("EPSG:3857"),
        displayProjection: new OpenLayers.Projection("EPSG:4326"),
        units: "m",
        numZoomLevels: 29,
        minResolution: 0.01,
        maxExtent: bnd,
        'tileSize': new OpenLayers.Size(1024,768),
        'buffer':0};
       
    var map = new OpenLayers.Map('map', options);
    var emap = new OpenLayers.Layer.MapServer("{{ LayerName }}", 
                  "/cgi-bin/mapserv?MAP={{ MapFileName }}",
                  {Layers:"Station Zooomed In"},
		   {'buffer':0, 
                   'sphericalMercator': 'true',
                  'projection': new OpenLayers.Projection("EPSG:3857"),
                   visibility: true,
                   isBaseLayer: false});
   var gsat = new OpenLayers.Layer.Google("Google Satellite", {type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22});
    var gmap = new OpenLayers.Layer.Google("Google Streets", {numZoomLevels: 22});
    var gphy = new OpenLayers.Layer.Google("Google Physical",{type: google.maps.MapTypeId.TERRAIN});
    var ghyb = new OpenLayers.Layer.Google("Google Hybrid",{type: google.maps.MapTypeId.HYBRID, numZoomLevels: 22}); 

    var optionsforgraphic = {numZoomLevels: 29, maxResolution: 10000000, minResolution: 0.01};

    var graphic = new OpenLayers.Layer.Image('Background',
         '/music/mapbackground.png',
         bnd,
         new OpenLayers.Size(1024, 1024),
         optionsforgraphic);
    graphic.events.on({loadstart: function() {OpenLayers.Console.log("loadstart");},
                                              loadend: function() {
                                              OpenLayers.Console.log("loadend");}});
 map.addLayers([graphic, gsat, gmap, gphy, ghyb, emap]); 
    map.addControl(new OpenLayers.Control.LayerSwitcher());
    map.addControl(new OpenLayers.Control.Permalink());
    map.addControl(new OpenLayers.Control.MousePosition());
    if (!map.getCenter()) {map.zoomToExtent(bnd)}
	    {{ OpenLayersZoom }}

  </script>
</div><br>

<table width="75%">
<tr>
</tr>
</table>
</td>
<td valign="top" width="50%">
         <small>Map {{form.Map}} &nbsp&nbsp&nbsp&nbsp<input type="submit"/><br>
         Select Using GPS{{form.SelectGPSIndicator}} {{GPSStatus}}<br>
         <b>Selection</b> Station {{form.SelectStationid}}
         Tag {{form.SelectTagNumber}}<br>
         RoadName {{form.SelectRoadName}}<br>
         MeterNumber {{form.SelectMeterNumber}}<br>
         DCSINumber {{form.SelectDCSINumber}}<br>

</colgroup>
<table> 
        
        <tr><td valign="top">&nbsp</td><td valign="top">&nbsp</td></tr>
        <tr><td valign="top"><small>
			<b>Update:</b>  {{form.UpdateIndicator0}}
                        ID {{form.Conditionid0}}<br>                        
                     
                        Station ID{{form.StationIdentifier0}}
                        TagNumber{{form.TagNumber0}}<br>
                     
                        <b>Review</b> {{form.ReviewIndicator0}}
                        Additional Attention Needed{{form.ReviewAdditionalAttentionNeededIndicator0}}<br>  
                        Comments{{form.ReviewComments0}}<br>
                        UserName{{form.ReviewUserName0}}<br>
                        DateTime{{form.ReviewDateTime0}}<br>
                        <br>
                        Deleted {{form.DeletedIndicator0}}<br>
                        <br>
                        <b>Archived</b>{{form.ArchivedIndicator0}}
                        UserName{{form.ArchivedUserName0}}
                        Date{{form.ArchivedDateTime0}}<br>
                        <b>Create</b> Date {{form.CreateDateTime0}}
                        UserName{{form.CreateUserName0}}<br>
                        <b>Last Modify</b> Date {{form.LastModifyDateTime0}}
                        UserName{{form.LastModifyUserName0}}<br>
                        </small></td></tr> 
</table>
</td></tr>
</table>
</form>
<br>
</ul>
  </body>
</html>